<?php
	/*
		DreamCMS Version 1.0
		Developed by: Andrei Mikalov (Zeus)
		
		Thanks to Adam Davis
	*/
	require_once("models/config.php");
	
	//Prevent the user visiting the logged in page if he/she is not logged in
	if(!isUserLoggedIn()) { header("Location: login.php"); die(); }
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
<title>Welcome <?php echo $loggedInUser->display_username; ?></title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>

<body>

<div id="container">

        <h1><?php echo $sitename; ?></h1>
        <div id="buttons">
        <a href="#"><img src="images/home.jpg" alt="Home" /></a>
        <a href="#"><img src="images/mail.jpg" alt="Mail" /></a>
        <a href="#"><img src="images/secure.jpg" alt="Support" /></a>
        </div>     

<div id="navcont">
    <ul id="nav">
    </ul>
    </div>

    
    

<div id="content_main">
           <h3>Your account</h3>
            <p>
            <p>
            <p>Welcome to your account page <strong><?php echo $loggedInUser->display_username; ?></strong></p>

            <p>You are a <strong><?php  $group = $loggedInUser->groupID(); echo $group['Group_Name']; ?></strong></p>
          
            
            <p>You joined on <?php echo date("l \\t\h\e jS Y",$loggedInUser->signupTimeStamp()); ?> </p>
            </p>
                
            
        </div>
    
    <div id="nav_main">
        <h4>Navigation</h4>
        <ul>
          <?php include("layout_inc/right-nav.php"); ?>
        </ul>
    </div>
    
    
</div>

<div id="footer">
<div id="copyright"></div>
Powered by DreamCMS Version 1 <br />
Copyright &copy Andrei Mikalov & Adam Davis <br />
Thanks to Zymic.com for the template.
        <ul id="nav_footer">
        
        </ul>
    
</div>

</body>
</html>
